﻿using Pay.DTO;
using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.IService
{
    public interface IProductTokenMakerService {

        /// <summary>
        /// 获得创客商品列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        PagedResult<product_token_maker_dto_ex> GetProductTokenMakers(ProductTokenMakerQuery query);
        /// <summary>
        /// 获得创客商品
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        product_token_maker_dto_ex GetProductTokenMaker(long product_activity_id);
        /// <summary>
        /// 获得创客商品
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        product_token_maker_dto_ex GetByProductId(long product_id);
        /// <summary>
        /// 获取创客商品
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        product_token_maker_edit_dto GetForEdit(long id);
        /// <summary>
        /// 新增创客商品
        /// </summary>
        /// <param name="productId"></param>
        /// <returns></returns>
        int AddProductTokenMaker(long productId);

        /// <summary>
        /// 更新创客商品
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        int UpdateProductTokenMaker(product_token_maker_edit_dto dto);

        /// <summary>
        /// 删除创客商品
        /// </summary>
        /// <param name="product_activity_id"></param>
        /// <returns></returns>
        int DeleteProductTokenMaker(long product_activity_id);



    }
}
